let mysqlpool = require("../../model/connect");
const getOrderbyNameControler=async (request,response)=>{
    let {username} = request.query;
    //通过名字获取所有订单信息
    let sql_check = `select * from order_form WHERE person = '${username}' ORDER BY id DESC`
    await mysqlpool.query(sql_check, (err,res)=>{
        console.log(res);
        response.send({res});
     })
    
}
module.exports=getOrderbyNameControler